/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户相册Entity
 * @author 罗天文
 * @version 2018-03-29
 */
public class HkUserAlbumContent extends DataEntity<HkUserAlbumContent> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户id
	private String name;		// 名称
	private String imgSrc;		// 图片
	private String rank;		// 序号
	private HkUserAlbum album;		// 相册id 父类
	
	public HkUserAlbumContent() {
		super();
	}

	public HkUserAlbumContent(String id){
		super(id);
	}

	public HkUserAlbumContent(HkUserAlbum album){
		this.album = album;
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=100, message="图片长度必须介于 0 和 100 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	@Length(min=0, max=200, message="序号长度必须介于 0 和 200 之间")
	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}
	
	@Length(min=0, max=32, message="相册id长度必须介于 0 和 32 之间")
	public HkUserAlbum getAlbum() {
		return album;
	}

	public void setAlbum(HkUserAlbum album) {
		this.album = album;
	}
	
}